package com.itheima.variable;


import java.util.Scanner;

/**
 * @author yuanying
 * @date 2025/7/21 -  16:49
 */
public class ScannerDemo1 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);

        System.out.println("请输入您的年龄：");
        int age=sc.nextInt();
        System.out.println("年龄是"+age);

        System.out.println("请输入您的名称:");
        String name=sc.next();
        System.out.println("欢迎"+name);
    }
}
